<template>
 <el-form
      ref="formRef"
      :model="formData"
      :rules="formRules"
      label-width="150px"
      v-loading="formLoading"
    >
    <el-form-item label="客服二维码" prop="customerService">
        <UploadImg v-model="formData.customerService" />
      </el-form-item>
</el-form>

</template>
<script setup lang="ts">
import { getIntDictOptions, getBoolDictOptions, DICT_TYPE } from '@/utils/dict'
/** 基础设置 表单 */
defineOptions({ name: 'QrcodeForm' })
const { t } = useI18n() // 国际化
const message = useMessage() // 消息弹窗
const props = defineProps({
  formData: {
    type: Object,
    default: () => {}
  }
})
const formData=props.formData
watch(() => props.formData, (val) => {
  formData.value = val
})
const formRules = reactive({
  // infoStatus: [{ required: true, message: '是否必须完善信息', trigger: 'blur' }]
})
const formRef = ref()
const validateForm=async()=>{
  return formRef.value.validate()
}
defineExpose({ validateForm })
</script>